package com.cc2019.buke.home.entry;

import java.io.Serializable;

public class Cart implements Serializable {
    private Integer id;
    private Integer uid;
    private Integer pid;
    private String pname;
    private double price;
    private int total;

    public Cart(){};

    public Cart(Integer id, Integer uid, Integer pid, String pname, double price, int total) {
        this.id = id;
        this.uid = uid;
        this.pid = pid;
        this.pname = pname;
        this.price = price;
        this.total = total;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
